/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Message Condition</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * <!-- begin-model-doc -->
 * vocSet: T357 (C-0-T357-cpt)
 * <!-- end-model-doc -->
 * @see org.hl7.v3.V3Package#getMessageCondition()
 * @model extendedMetaData="name='MessageCondition'"
 * @generated
 */
public enum MessageCondition implements Enumerator {
	/**
	 * The '<em><b>207</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_207_VALUE
	 * @generated
	 * @ordered
	 */
	_207(0, "_207", "207"),

	/**
	 * The '<em><b>206</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_206_VALUE
	 * @generated
	 * @ordered
	 */
	_206(1, "_206", "206"),

	/**
	 * The '<em><b>102</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_102_VALUE
	 * @generated
	 * @ordered
	 */
	_102(2, "_102", "102"),

	/**
	 * The '<em><b>205</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_205_VALUE
	 * @generated
	 * @ordered
	 */
	_205(3, "_205", "205"),

	/**
	 * The '<em><b>0</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_0_VALUE
	 * @generated
	 * @ordered
	 */
	_0(4, "_0", "0"),

	/**
	 * The '<em><b>101</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_101_VALUE
	 * @generated
	 * @ordered
	 */
	_101(5, "_101", "101"),

	/**
	 * The '<em><b>100</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_100_VALUE
	 * @generated
	 * @ordered
	 */
	_100(6, "_100", "100"),

	/**
	 * The '<em><b>103</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_103_VALUE
	 * @generated
	 * @ordered
	 */
	_103(7, "_103", "103"),

	/**
	 * The '<em><b>204</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_204_VALUE
	 * @generated
	 * @ordered
	 */
	_204(8, "_204", "204"),

	/**
	 * The '<em><b>202</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_202_VALUE
	 * @generated
	 * @ordered
	 */
	_202(9, "_202", "202"),

	/**
	 * The '<em><b>203</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_203_VALUE
	 * @generated
	 * @ordered
	 */
	_203(10, "_203", "203"),

	/**
	 * The '<em><b>201</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_201_VALUE
	 * @generated
	 * @ordered
	 */
	_201(11, "_201", "201"),

	/**
	 * The '<em><b>200</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #_200_VALUE
	 * @generated
	 * @ordered
	 */
	_200(12, "_200", "200");

	/**
	 * The '<em><b>207</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>207</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_207
	 * @model literal="207"
	 * @generated
	 * @ordered
	 */
	public static final int _207_VALUE = 0;

	/**
	 * The '<em><b>206</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>206</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_206
	 * @model literal="206"
	 * @generated
	 * @ordered
	 */
	public static final int _206_VALUE = 1;

	/**
	 * The '<em><b>102</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>102</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_102
	 * @model literal="102"
	 * @generated
	 * @ordered
	 */
	public static final int _102_VALUE = 2;

	/**
	 * The '<em><b>205</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>205</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_205
	 * @model literal="205"
	 * @generated
	 * @ordered
	 */
	public static final int _205_VALUE = 3;

	/**
	 * The '<em><b>0</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>0</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_0
	 * @model literal="0"
	 * @generated
	 * @ordered
	 */
	public static final int _0_VALUE = 4;

	/**
	 * The '<em><b>101</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>101</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_101
	 * @model literal="101"
	 * @generated
	 * @ordered
	 */
	public static final int _101_VALUE = 5;

	/**
	 * The '<em><b>100</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>100</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_100
	 * @model literal="100"
	 * @generated
	 * @ordered
	 */
	public static final int _100_VALUE = 6;

	/**
	 * The '<em><b>103</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>103</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_103
	 * @model literal="103"
	 * @generated
	 * @ordered
	 */
	public static final int _103_VALUE = 7;

	/**
	 * The '<em><b>204</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>204</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_204
	 * @model literal="204"
	 * @generated
	 * @ordered
	 */
	public static final int _204_VALUE = 8;

	/**
	 * The '<em><b>202</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>202</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_202
	 * @model literal="202"
	 * @generated
	 * @ordered
	 */
	public static final int _202_VALUE = 9;

	/**
	 * The '<em><b>203</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>203</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_203
	 * @model literal="203"
	 * @generated
	 * @ordered
	 */
	public static final int _203_VALUE = 10;

	/**
	 * The '<em><b>201</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>201</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_201
	 * @model literal="201"
	 * @generated
	 * @ordered
	 */
	public static final int _201_VALUE = 11;

	/**
	 * The '<em><b>200</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>200</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #_200
	 * @model literal="200"
	 * @generated
	 * @ordered
	 */
	public static final int _200_VALUE = 12;

	/**
	 * An array of all the '<em><b>Message Condition</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final MessageCondition[] VALUES_ARRAY =
		new MessageCondition[] {
			_207,
			_206,
			_102,
			_205,
			_0,
			_101,
			_100,
			_103,
			_204,
			_202,
			_203,
			_201,
			_200,
		};

	/**
	 * A public read-only list of all the '<em><b>Message Condition</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<MessageCondition> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Message Condition</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MessageCondition get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MessageCondition result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Message Condition</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MessageCondition getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			MessageCondition result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Message Condition</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static MessageCondition get(int value) {
		switch (value) {
			case _207_VALUE: return _207;
			case _206_VALUE: return _206;
			case _102_VALUE: return _102;
			case _205_VALUE: return _205;
			case _0_VALUE: return _0;
			case _101_VALUE: return _101;
			case _100_VALUE: return _100;
			case _103_VALUE: return _103;
			case _204_VALUE: return _204;
			case _202_VALUE: return _202;
			case _203_VALUE: return _203;
			case _201_VALUE: return _201;
			case _200_VALUE: return _200;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private MessageCondition(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //MessageCondition
